import service from "../utils/request";

// 账户体系-登录
export function Login(data) {
  return service.request({
    url: import.meta.env.VITE_APP_ACCOUNT_URL + "/v1/account/login",
    method: "post",
    data,
  });
}
// 用户名检测
export function checkUserName(data) {
  return service.request({
    url: import.meta.env.VITE_APP_ACCOUNT_URL + "/v1/account/check",
    method: "post",
    data,
  });
}
// 获取验证码
export function getSanCode(data) {
  return service.request({
    url: import.meta.env.VITE_APP_ACCOUNT_URL + "/v1/send",
    method: "post",
    data,
  });
}
